import { http } from '@/utils'

// 登录
export const loginAPI = (data) => {
  return http({
    url: '/authorizations',
    method: 'POST',
    data
  })
}

// 获取用户信息
export const getUserProfileAPI = () => {
  return http({
    url: '/user/profile',
    method: 'GET'
  })
}